﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

public delegate string deleHotFix_tt(int pthis);

public class TestClass
{
    
    public static deleHotFix_tt xcpp_HotFix_tt;
    public string tt()
    {
        if (xcpp_HotFix_tt != null)
            return xcpp_HotFix_tt(2);
        UnityEngine.Debug.LogWarning("世界美好,没有热更");
        return "长江";
    }
    //将来也可以搞标记自动注入，自动插入Hotfix分支代码
    //[xCPPHotFix]
    //public string tt()
    //{
    //    UnityEngine.Debug.LogWarning("世界美好,没有热更");
    //    return "长江";
    //}

    public void UseS(Sdata s)
    {
        UnityEngine.Debug.LogWarning(s.a1);
        UnityEngine.Debug.LogWarning(s.v2);
        UnityEngine.Debug.LogWarning(s.v3);
    }
    public float aa1;
    public override string ToString()
    {
        return "TestClass aa1=" + aa1;
    }

}
public struct Sdata
{
    public float a1;
    public int v2;
    public double v3;
    public override string ToString()
    {
        Transform t;
        return "vs:  " + a1 + "," + v2 + "," + v3;
    }
}
